<div class="wrapper wrapper-content animated fadeInRight">
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">
        <div class="col-xs-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>搜索</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">

                        <div class="table-responsive">
                            <form class="form-search" method="get" action="<?=url('taocan.store/index')?>" role="form">
                                <table>
                                    <tr>
                                        <td>主要负责人账号:<input class="form-control" name="store_tel" id="mobile" value="<?=$search['store_tel']?>" type="text" placeholder="请输入主要负责人账号" style=" width:200px"/></td>
                                        <td>商家名称:<input class="form-control" name="store_name" id="store_name" value="<?=$search['store_name']?>" type="text" placeholder="请输入商家名称" style=" width:200px"/></td>
                                        <td>
                                            <div class="input-group">
                                                <button type="submit" style="margin-top: 42%"
                                                        class="btn form-control btn-sm btn-primary">
                                                    搜索
                                                </button>
                                            </div>
                                        </td>
                                    </tr>

                                </table>

                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="ibox-content">
                <div class="row">
                    <div class="table-responsive">
                        <table id="simple-table" class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>商家名称</th>
                                <th>商家详情</th>
                                <th>负责人手机号</th>
                                <th>负责人地址</th>
                                <th>负责人身份证</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <form id="mini_list">
                                <tbody>
                                <tr>
                                    <td colspan="6" style="text-align: center">选择全部商家（请根据实际情况选择）</td>
                                    <td>
                                        <div class="hidden-sm hidden-xs btn-group"><a  onclick="parent.seleStore('全部商家','0');" href="javascript:void(0);" class="btn btn-xs btn-info">选择该商家</a></div>
                                    </td>
                                </tr>
                                <?php foreach($list as $val){ ?>
                                <tr>
                                    <td><?= $val->store_id ?></td>
                                    <td><?=$val->store_name?></td>
                                    <td><?=$val->stroe_detail?></td>
                                    <td><?=$val->store_tel?></td>
                                    <td><?=$val->stroe_address?></td>
                                    <td><?=$val->store_idcard?></td>
                                    <td>
                                        <div class="hidden-sm hidden-xs btn-group"><a  onclick="parent.seleStore('<?=$val->store_name?>','<?=$val->store_id?>');" href="javascript:void(0);" class="btn btn-xs btn-info">选择该商家</a></div>
                                    </td>
                                </tr>
                                <?php } ?>
                                </tbody>
                            </form>
                        </table>
                        <div>
                            <?php echo $page; ?>
                        </div>
                    </div><!-- /.row -->
                </div><!-- /.main-container -->
            </div>
        </div>
    </div>
</div>
